import request from '@/utils/request'
import {SERVICE_URL} from '@/config/index.js'

//  创建订单
export function createOrder (data) {
	return request.post({
		url: SERVICE_URL + '/v1/trade/order/add',
		data
	})
}

//  积分支付
export function integralSubscription (data) {
	return request.post({
		url: SERVICE_URL + '/v1/trade/order/integralsubscription',
		data
	})
}
//  订单信息
export function getOrderInfo (id) {
	return request.get({
		url: `${SERVICE_URL}/v1/trade/order/info?id=${id}`,
	})
}
